<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <script>
        function add(a,b = 1) {

            return a + b;

        }

        console.log(add(10));

        let b = (a, b) => a + b;
        console.log(b(1,2))


        const person = {
            name:"jack",
            eat(food) {
                console.log(this.name + "在吃" + food);
            }
        }
       person.eat("1234124")


        let bb = ({name})=> console.log("hello"+name)
        bb(person)


    </script>
</head>
<body>

</body>
</html>